/**
 * 
 */
package ar.com.greensoft.neosystem.common;

import java.util.ArrayList;
import java.util.List;

/**
 * 
 * @author Jorge E. Villaverde
 * @date 18/01/2012
 * @version 1.0.0
 */
public class CompositeMenuItem extends SimpleMenuItem {

	private List<MenuItem> subItems = new ArrayList<MenuItem>();
	
	public CompositeMenuItem(String label, String action) {
		super(label, action);
	}

	public void addMenuItem(MenuItem menuItem){
		subItems.add(menuItem);
	}

	public List<MenuItem> getSubItems() {
		return subItems;
	}
}
